}
/* %%% include character set headers %%% */
-
-#include "cet/ansi_x3_4_1968.h"
-#include "cet/atarist.h"
-#include "cet/baltic.h"
-#include "cet/bs_4730.h"
-#include "cet/bs_viewdata.h"
+#if defined (CET_WANTED)
+#include "cet/iso_8859_2.h"
+#include "cet/cp1250.h"
+#include "cet/latin_greek_1.h"
+#include "cet/macintosh.h"
#include "cet/cp1250.h"
#include "cet/cp1251.h"
#include "cet/cp1252.h"
#include "cet/cp1255.h"
#include "cet/cp1256.h"
#include "cet/cp1257.h"
+#include "cet/ibm437.h"
+#include "cet/ibm850.h"
+#include "cet/ibm851.h"
+#include "cet/ibm852.h"
+#include "cet/ibm855.h"
+#include "cet/ibm857.h"
+#include "cet/ibm860.h"
+#include "cet/ibm861.h"
+#include "cet/ibm862.h"
+#include "cet/ibm863.h"
+#include "cet/ibm864.h"
+#include "cet/ibm865.h"
+#include "cet/ibm868.h"
+#include "cet/ibm869.h"
+#include "cet/iso_8859_1.h"
+#include "cet/iso_8859_10.h"
+#include "cet/iso_8859_13.h"
+#include "cet/iso_8859_14.h"
+#include "cet/iso_8859_15.h"
+#include "cet/iso_8859_2.h"
+#include "cet/iso_8859_3.h"
+#include "cet/iso_8859_4.h"
+#include "cet/iso_8859_5.h"
+#include "cet/iso_8859_6.h"
+#include "cet/iso_8859_7.h"
+#include "cet/iso_8859_8.h"
+#include "cet/iso_8859_9.h"
+#include "cet/koi8_r.h"
+#include "cet/koi8_ru.h"
+#include "cet/koi_8.h"
+#endif
+
+#if CET_WANTED
+#include "cet/ansi_x3_4_1968.h"
+#include "cet/atarist.h"
+#include "cet/baltic.h"
+#include "cet/bs_4730.h"
+#include "cet/bs_viewdata.h"
#include "cet/csa_z243_4_1985_1.h"
#include "cet/csa_z243_4_1985_2.h"
#include "cet/csa_z243_4_1985_gr.h"
#include "cet/ibm284.h"
#include "cet/ibm285.h"
#include "cet/ibm297.h"
-#include "cet/ibm437.h"
#include "cet/ibm500.h"
-#include "cet/ibm850.h"
-#include "cet/ibm851.h"
-#include "cet/ibm852.h"
-#include "cet/ibm855.h"
-#include "cet/ibm857.h"
-#include "cet/ibm860.h"
-#include "cet/ibm861.h"
-#include "cet/ibm862.h"
-#include "cet/ibm863.h"
-#include "cet/ibm864.h"
-#include "cet/ibm865.h"
-#include "cet/ibm868.h"
-#include "cet/ibm869.h"
#include "cet/ibm871.h"
#include "cet/ibm891.h"
#include "cet/ibm903.h"
#include "cet/iso_5427.h"
#include "cet/iso_646_irv.h"
#include "cet/iso_6937_2_25.h"
-#include "cet/iso_8859_1.h"
-#include "cet/iso_8859_10.h"
-#include "cet/iso_8859_13.h"
-#include "cet/iso_8859_14.h"
-#include "cet/iso_8859_15.h"
-#include "cet/iso_8859_2.h"
-#include "cet/iso_8859_3.h"
-#include "cet/iso_8859_4.h"
-#include "cet/iso_8859_5.h"
-#include "cet/iso_8859_6.h"
-#include "cet/iso_8859_7.h"
-#include "cet/iso_8859_8.h"
-#include "cet/iso_8859_9.h"
#include "cet/iso_8859_supp.h"
#include "cet/it.h"
#include "cet/jis_c6220_1969_ro.h"
#include "cet/jus_i_b1_003_mac.h"
#include "cet/jus_i_b1_003_serb.h"
#include "cet/keybcs2.h"
-#include "cet/koi8_r.h"
-#include "cet/koi8_ru.h"
#include "cet/koi8_u.h"
#include "cet/koi_7.h"
-#include "cet/koi_8.h"
#include "cet/koi_8_cs2.h"
#include "cet/ksc5636.h"
#include "cet/latin_greek_1.h"
#include "cet/tcvn.h"
#include "cet/viscii.h"
#include "cet/vps.h"
+#endif
#ifdef DEBUG_MEM
/* config.h.in. Generated from configure.in by autoheader. */
+/* "0 for most-used character sets" */
+#undef CET_WANTED
+
/* Defined if you have libexpat */
#undef HAVE_LIBEXPAT
esac
cat <<\_ACEOF
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+--with-cet=(default,all,minimal)
+
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
fi
+#AC_ARG_ENABLE(allcet, "Enable all character sets", AC_DEFINE(WANT_ALLCET, 1, [Define if you want support for all known character sets]))
+#AC_ARG_ENABLE(cet, "Enable character sets=(default,all,minimal)")
+
+# Check whether --with-cet or --without-cet was given.
+if test "${with_cet+set}" = set; then
+ withval="$with_cet"
+ cet="$withval"
+else
+ cet="default"
+fi;
+
+if test "$cet" = "all"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define CET_WANTED 1
+_ACEOF
+
+fi
+if test "$cet" = "default"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define CET_WANTED 0
+_ACEOF
+
+fi
case "$target" in
*-*-cygwin* | *-*-mingw32*)
fi
+ # Override libusb for Darwin to reduce external
+ # runtime requirement.
+ case "$target" in
+ *-*-darwin*)
+ if test "x$ac_cv_lib_usb_usb_interrupt_read" = "xyes" ; then
+ USB_LIBS="`libusb-config --prefix`/lib/libusb.a -framework IOKit -framework CoreFoundation"
+ fi
+ esac
OSJEEPS=jeeps/gpslibusb.o
CFLAGS="$OCFLAGS"
# LIBS="$LIBS `libusb-config --libs`"
fi
- ;;
+ ;;
esac
else
# Special case fink test.
- if test -f /sw/include/expat.h; then
- CFLAGS="$CFLAGS -I/sw/include"
- fi
- if test -f /sw/include/expat.h; then
- LDFLAGS="$LDFLAGS -L/sw/lib"
- fi
+ case "$target" in
+ *-*-darwin*)
+ if test -f /sw/include/expat.h -a -f /sw/include/expat.h; then
+ CFLAGS="$CFLAGS -I/sw/include"
+ LDFLAGS="$LDFLAGS -L/sw/lib"
+ # Static link against expat archive, not dyn lib.
- echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBEXPAT 1
+_ACEOF
+
+ EXPAT_LIB=/sw/lib/libexpat.a
+ fi
+ ;;
+ *)
+ echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
#define HAVE_LIBEXPAT 1
_ACEOF
- EXPAT_LIB="$LDFLAGS -lexpat"
+ EXPAT_LIB="$LDFLAGS -lexpat"
fi
+
+ ;;
+ esac
fi
# Checks for libraries.
AC_CHECK_LIB([m], [cos])
+AC_ARG_WITH(cet,[--with-cet=(default,all,minimal)],
+ cet="$withval", cet="default")
+
+if test "$cet" = "all"; then
+ AC_DEFINE(CET_WANTED, 1, "1 for all character sets")
+fi
+if test "$cet" = "default"; then
+ AC_DEFINE(CET_WANTED, 0, "0 for most-used character sets")
+fi
case "$target" in
*-*-cygwin* | *-*-mingw32*)